#include <iostream>
#include <stdlib.h>
#include <vector>
#include <list>
#include <algorithm>
using namespace std;

#define list_init { 1, 2, 3, 4, 5 };

int
main ()
{
    //vector<int> some_list(list_init, list_init + sizeof(list_init) /
    //                        sizeof(int));
    vector<int> some_list list_init;
    int         total = 0;
    int         value = 5;
    std:for_each(some_list.begin(), some_list.end(), [&total](int x) { 
                        total += x; 
                        });   
    cout << "Total is " << total << endl;
}

